
<div class="nganhs view">
<h2><?php  __('Nganh');?></h2>
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('Tên Ngành');?></th>
			<th><?php echo $this->Paginator->sort('Khóa');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Nganh', true), array('action' => 'edit', $nganh['Nganh']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Nganh', true), array('action' => 'delete', $nganh['Nganh']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $nganh['Nganh']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Nganhs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nganh', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Khoas', true), array('controller' => 'khoas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khoa', true), array('controller' => 'khoas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ctdts', true), array('controller' => 'ctdts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ctdt', true), array('controller' => 'ctdts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Lops', true), array('controller' => 'lops', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Lop', true), array('controller' => 'lops', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Ctdts');?></h3>
	<?php if (!empty($nganh['Ctdt'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nganh Id'); ?></th>
		<th><?php __('Ten'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nganh['Ctdt'] as $ctdt):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ctdt['id'];?></td>
			<td><?php echo $ctdt['nganh_id'];?></td>
			<td><?php echo $ctdt['ten'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ctdts', 'action' => 'view', $ctdt['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ctdts', 'action' => 'edit', $ctdt['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ctdts', 'action' => 'delete', $ctdt['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ctdt['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ctdt', true), array('controller' => 'ctdts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Lops');?></h3>
	<?php if (!empty($nganh['Lop'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nganh Id'); ?></th>
		<th><?php __('Malop'); ?></th>
		<th><?php __('TenLop'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nganh['Lop'] as $lop):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $lop['id'];?></td>
			<td><?php echo $lop['nganh_id'];?></td>
			<td><?php echo $lop['malop'];?></td>
			<td><?php echo $lop['tenLop'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'lops', 'action' => 'view', $lop['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'lops', 'action' => 'edit', $lop['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'lops', 'action' => 'delete', $lop['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $lop['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Lop', true), array('controller' => 'lops', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
